﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using BussinessObject;

public partial class WebApplication_ADReplyQuoteUs : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            txtTo.Text = Session["Email"].ToString();
        }
    }
    protected void btSubmit_Click(object sender, EventArgs e)
    {
        BOQuoteUs boqu = new BOQuoteUs();
        boqu.Reply_QuoteUs(txtTo.Text,txtSubject.Text,txtContent.Text);
        HttpContext.Current.Response.Write("<script type='text/javascript'>alert('" + "Reply Successfully ..." + "');</script>");
        Response.Redirect("ADQuoteUs.aspx");
    }
    protected void btReset_Click(object sender, EventArgs e)
    {
        txtTo.Text = "";
        txtSubject.Text = "";
        txtContent.Text = "";
    }
}